package com.woniuxy.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ...
 * @since 2024年05月22日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("user_score")
@ApiModel("用户积分详情表")
public class UserScore implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;
    /**
     * 用户ID
     */
    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Integer userId;
    /**
     * 变动积分
     */
    @ApiModelProperty("变动积分")
    @TableField("change_score")
    private Integer changeScore;

    /**
     * 变动详情
     */
    @ApiModelProperty("变动详情")
    @TableField("change_details")
    private String changeDetails;
    /**
     * 变动时间
     */
    @ApiModelProperty("变动时间")
    @TableField("change_time")
    private LocalDateTime changeTime;
    /**
     * 积分总额
     */
    @ApiModelProperty("积分总额")
    @TableField("score_total")
    private Integer scoreTotal;


}
